package com.ruantong.dingtalk.ding.callback.service.impl;

import com.ruantong.dingtalk.ding.callback.listener.event.CallbackEvent;
import com.ruantong.dingtalk.ding.callback.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: jh.chen
 * @time: 2020/11/16 23:37
 */
@Service
public class EventServiceImpl implements EventService {

    @Autowired
    private ApplicationContext applicationContext;

    @Override
    public void productCallbackEvent(CallbackEvent event) {
        applicationContext.publishEvent(event);
    }
}
